home *** CD-ROM | disk | FTP | other *** search
/ Virtual Vibrations / Virtual Vibrations.iso / pc / install.dat < prev    next >
Encoding:
INSTALL Professional project  |  1994-10-03  |  13.7 KB  |  360 lines

  1. /*
  2.  INSTALL.DAT
  3.  
  4.  Project: Starware CD-ROM Sampler
  5.  Version: 1.0
  6.  
  7. */
  8.  
  9. /*  The @DefineProject block starts the installation script by telling
  10.     Install what version, product, and other basic information that
  11.     Install will need to process the installation.  The text that
  12.     @Name is set to is the same information that can be found on the
  13.     first line of the DISK.ID file.  Likewise the text that @Version
  14.     is set to, is the same information that can be found on the second
  15.     line of the DISK.ID file.  This information remains constant
  16.     throughout the entire distribution set.  @Subdir and @OutDrive are
  17.     used to define the default drive and directory for the target system
  18.     during the installation process.  @InDiskBell set to @True will cause
  19.     INSTALL to beep when it prompts the user for additional disks during
  20.     the installation.  
  21. */
  22.     
  23. @DefineProject
  24.     @Name = "Starware CD-ROM Sampler"
  25.     @Version = "1.0"
  26.     @SubDir = "\\Starware\\sampler" //Line 26
  27.     @OutDrive = C
  28.     
  29. @EndProject
  30.  
  31. /*  The following @DefineVars block is used to assign variables to
  32.     specific types (Integer, QString, Drive, & Dir) as well as establishing
  33.     default values for the variables.  Variables may be used throughout
  34.     the wINSTALL script file, and can be assigned to any legal value for
  35.     its type, at just about any time during the script file.  Later in
  36.     this script file these variables are assigned values depending whether
  37.     particular files will be installed or not.
  38. */
  39.  
  40. @DefineVars
  41.     @Integer @samp       = 930
  42.     @Integer @qtw       = 1408
  43.     @Integer @TSIZE      = @Eval(@samp+@qtw)
  44.     @Integer @Red        = @RGB(255,0,0)             //DEFINE COLOR RED
  45.     @Integer @Green      = @RGB(0,255,0)             //DEFINE COLOR GREEN
  46.     @Integer @Blue       = @RGB(0,0,255)             //DEFINE COLOR BLUE
  47.     @Integer @Black      = @RGB(0,0,0)               //DEFINE COLOR BLACK
  48.     @Drive @QTWDrive = C
  49.     @Dir @QTWDirectory = "\\QTW\\BIN"
  50.     @Drive @SampleDrive = C
  51.     @Dir @SampleDirectory = "\\Starware\\Sampler"
  52.     @Qstring @CDLetter = "@StartupDrive"
  53. @EndVars
  54.  
  55. //@BackgroundMode(3,@Blue,@Black)
  56. @BackgroundMode(1,0,0)
  57. /* 
  58.     The following section displays the welcoming message during installation.
  59.     @MoveCStr is essentially the same as the @MoveStr command, except that
  60.     it allows you to change the background and foreground colors at the
  61.     specified location. (Note MoveCStr() is only valid under DOS installations.)
  62. */
  63.  
  64.  
  65. @Display
  66. @Cls
  67. This program installs the Starware CD-ROM Sampler
  68. on your hard drive.  To continue, choose "OK".  To quit choose
  69. "Cancel".  
  70. @Pause
  71. @Enddisplay
  72.  
  73. @SetOption(1001)  
  74. @SetOption(1002)
  75.  
  76. LOOP:
  77. @BackgroundMode(1,0,0)
  78.  
  79.  
  80. @DlgCtrlSize(0,7,5,14,50)  // set coordinates & size of list box
  81. @GetGroups
  82.     @Checkbox
  83.     Select Programs to install:
  84.   
  85.     @Set S = "Install The Starware CD-ROM Sampler"
  86.     @Set Q = "Install Quicktime for Windows 1.1"
  87.     @SetGroup(S)
  88.     @SetGroup(Q)
  89. @EndGroups
  90. @If('S' [! @Group)
  91.     @If('Q' [! @Group)
  92.         @Display
  93.         You have not selected any programs to install.
  94.         
  95.         @Abort
  96.         @EndDisplay
  97.     @EndIf
  98. @EndIf
  99. @If ('S' [= @Group)
  100. NEWDRIVE:  // Goto label for reselecting drive
  101. /*
  102.     wINSTALL will now prompt the end-user for the
  103.     drive they wish Starware CD-ROM Sampler to be installed onto.
  104. */
  105. //@BackgroundMode(1,0,0)
  106.  
  107.  
  108. @DlgCtrlSize(0,8,15,15,27)
  109. @GetOutDrive @SampleDrive @Prompt = "Enter target drive"
  110. @Suppress(0,17) // Suppress floppies & CD-ROM drives
  111. Please select the drive where you wish the Starware
  112. CD-ROM Sampler to be installed on your machine.  Any 
  113. available drive can be used assuming you have
  114. access rights to the drive you select, and
  115. there is approximately 930K available for installation.
  116. @EndOutDrive
  117.  
  118. /*
  119.     INSTALL will now prompt the end-user for the
  120.     directory they wish Starware CD-ROM Sampler
  121.     to be installed into.
  122. */
  123.  
  124. NEWDIR:
  125. //@BackgroundMode(3,@Blue,@Black)
  126.  
  127. @DlgCtrlSize(0,7,0,8,35)
  128. @GetSubdir @SampleDirectory @Prompt = "Enter target directory"
  129. Please select the directory
  130. you wish Starware CD-ROM Sampler to be installed under.
  131.  
  132. @EndSubdir
  133. @EndIf
  134.  
  135.  
  136. @If ('Q' [= @Group)
  137. QTWNEWDRIVE:  // Goto label for reselecting drive
  138. /*
  139.     wINSTALL will now prompt the end-user for the
  140.     drive they wish Quicktime 1.1 For Windows  to 
  141.     be installed onto.
  142. */
  143. //@BackgroundMode(3,@Blue,@Black)
  144.  
  145.  
  146. @DlgCtrlSize(0,10,15,18,27)
  147. @GetOutDrive @QTWDrive @Prompt = "Enter target drive"
  148. @Suppress(0,17) // Suppress floppies & CD-ROM drives
  149. Please select the drive where you wish the Quicktime
  150. for Windows 1.1 to be installed on your machine.  
  151. Quicktime must be installed properly for the Starware
  152. CD-ROM Sampler to operate correctly.  Any available 
  153. drive can be used assuming you have access rights to 
  154. the drive you select, and there is approximately 1.42
  155. Megabytes available for installation.
  156. @EndOutDrive
  157.  
  158.  
  159. /*
  160.     INSTALL will now prompt the end-user for the
  161.     directory they wish Quicktime to be installed
  162.     into.
  163. */
  164.  
  165. QTWNEWDIR:
  166. //@BackgroundMode(3,@Blue,@Black)
  167.  
  168.  
  169. @DlgCtrlSize(0,9,0,10,35)
  170. @GetSubdir @QTWDirectory @Prompt = "Enter target directory"
  171. Please select the directory you wish
  172. Quicktime for Windows 1.1 to be installed under.
  173.  
  174. @EndSubdir
  175.  
  176. @EndIf
  177.  
  178.  
  179. /*  The following section demonstrates three constructs in wINSTALL.  The
  180.     @If block, the @GoTo command, and the 'Membership' concept.  @If blocks
  181.     can be used virtually anywhere in wINSTALL and can control many actions
  182.     taken during the installation process.  @Goto commands can be used to
  183.     alter the general flow of execution in the script file.  This can be
  184.     handy in making script files that are flexible.  The 'Membership' concept
  185.     is used for determination of GROUPS and OPTIONS that may or may not have
  186.     been chosen during the installation.  Below for example, the condition
  187.     inside the @If block, checks to see whether '100 is a member' of the
  188.     @Option variable.  When a particular OPTION or GROUP is selected, a
  189.     flag is set in the @Option or @Group variable for that specific
  190.     OPTION number or GROUP letter.  In this way, you can test to see
  191.     whether specific OPTIONS or GROUPS have been set.  
  192. */
  193.  
  194.  
  195. @If ('S' [= @Group) @samp = 930 @Else @samp = 0 @EndIf //if group not selected zero out
  196. @If ('Q' [= @Group) @qtw = 1408  @Else @qtw =  0 @EndIf //if group not selected zero out
  197.  
  198.  
  199. @TSIZE = @Eval((@samp+@qtw))   // add selected options' size requirements
  200.  
  201. // if total size > free space, then display
  202. // blue background and set default to loop back and select again.
  203.  
  204. @If(@TSIZE*1024 > @DiskFree(@QTWDrive))
  205. //@BackgroundMode(3,@Blue,@Black)
  206.     @Display
  207.         The drive you have selected does not have
  208.         enough free space available.
  209.         
  210.     @Pause
  211.     @EndDisplay
  212.     @GOTO NEWDRIVE
  213. @EndIf  
  214.  
  215.  
  216. //@BackgroundMode(3,@Blue,@Black)
  217. @SetOption(1600) @ClearOption(1700)
  218.  
  219.  
  220. @DlgCtrlSize(0,13,12,17,40)
  221. @GetOption @Prompt = "Selected files summary"
  222. You have selected to install the following options.
  223.         @If ('S' [= @Group) Starware CD-ROM Sampler  @samp K @Else Starware CD-ROM Sampler WILL NOT BE INSTALLED @EndIf
  224.         @If ('Q' [= @Group) Quicktime for Windows    @qtw K @Else Quicktime for Windows    WILL NOT BE INSTALLED @EndIf
  225.       
  226.            The selected files will require a total of:        @TSIZE K bytes.
  227.            The drive currently selected for installation has: @Eval(@DiskFree(@OutDrive)/1K) K free.
  228.  
  229.  
  230.  You may:
  231. @Option 1600 = "CONTINUE"
  232. @Option 1700 = "RESELECT OPTIONS"
  233. @EndOption
  234.  
  235.  
  236. @If(1700 [= @Option) @GOTO Loop @EndIf
  237. @If('S' [= @Group)
  238.     @Display
  239.     @Cls
  240.     This program will create a file called Starware.INI in @SampleDrive:@SampleDirectory. 
  241.     This file looks like:
  242.  
  243.     [Starware]
  244.     CDDRIVE = X
  245.  
  246.     Where X should be your CD-ROM's drive letter.  
  247.     @Pause
  248.     @Enddisplay
  249. @EndIf
  250.  
  251. /*
  252.     The @DefineDisk blocks actually do the copying of the files, from the 
  253.     floppy disk to the hard disk of the end-users particular choice.
  254. */
  255.  
  256. @DefineDisk
  257.     @Label = "Starware CD-ROM Sampler"
  258.  
  259. /*
  260.     The following files are not in a library and are always installed.
  261. */
  262. /*              @File  README.txt   @OUT *.*                    */
  263.  
  264.  
  265. @File pcsample\threed.vbx       @OUT @WindowsDrive:\@WindowsDir\*.* @ASKOVERWRITE @Group S @Size 64544
  266. @File pcsample\mkTools.vbx      @OUT @WindowsDrive:\@WindowsDir\*.* @ASKOVERWRITE @Group S @Size 38912
  267. @File pcsample\QTMovie.vbx      @OUT @WindowsDrive:\@WindowsDir\*.* @ASKOVERWRITE @Group S @Size 28064
  268. @File pcsample\Grid.vbx         @OUT @WindowsDrive:\@WindowsDir\*.* @ASKOVERWRITE @Group S @Size 45136
  269. @File pcsample\anibuton.vbx     @OUT @WindowsDrive:\@WindowsDir\*.* @ASKOVERWRITE @Group S @Size 99888
  270. @File pcsample\cmdialog.vbx     @OUT @WindowsDrive:\@WindowsDir\*.* @ASKOVERWRITE @Group S @Size 18688
  271. @File pcsample\msmasked.vbx     @OUT @WindowsDrive:\@WindowsDir\*.* @ASKOVERWRITE @Group S @Size 30288
  272. @File pcsample\picclip.vbx      @OUT @WindowsDrive:\@WindowsDir\*.* @ASKOVERWRITE @Group S @Size 15840
  273. @File pcsample\VBRUN300.DLL     @OUT @WindowsDrive:\@WindowsDir\*.* @ASKOVERWRITE @Group S @Size 300000
  274. @File pcsample\bitmaps\splash.bmp @OUT @SampleDrive:\@SampleDirectory\*.* @Group S @Size 78778
  275. @File pcsample\bitmaps\BOSS.bmp @OUT @SampleDrive:\@SampleDirectory\*.* @Group S @Size 78778
  276. @File pcsample\DEMO.exe @OUT @SampleDrive:\@SampleDirectory\*.* @Group S @Size 216264
  277. @File qtw\mciqtenu.dll  @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 3872
  278. @File qtw\playenu.dll           @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 16592
  279. @File qtw\qthndlr.dll           @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 8272
  280. @File qtw\qtim.dll              @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 214976
  281. @File qtw\qtimcmgr.dll  @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 13712
  282. @File qtw\qtole.dll             @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 72560
  283. @File qtw\qtvhdw.dll            @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 15408
  284. @File qtw\viewenu.dll           @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 17408
  285. @File qtw\mciqtw.drv            @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 40400
  286. @File qtw\qtnotify.exe          @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 4080
  287. @File qtw\navg.qtc              @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 22912
  288. @File qtw\qcmc.qtc              @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 108400
  289. @File qtw\qtcvid.qtc            @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 181968
  290. @File qtw\qtmsvc.qtc            @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 7024
  291. @File qtw\qtraw.qtc             @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 6992
  292. @File qtw\qtrle.qtc             @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 92544
  293. @File qtw\qtrpza.qtc            @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 200368
  294. @File qtw\qtrt21.qtc            @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 58544
  295. @File qtw\qtsmc.qtc             @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 164480
  296. @File qtw\qtyvu9.qtc            @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 7376
  297. @file qtw\player.exe            @OUT @QTWDrive:\@QTWDirectory\*.* @OVERWRITE @Group Q @Size 58032
  298. @EndDisk
  299.  
  300.  
  301. //
  302. //      The following lines will be placed into any pre-existing AUTOEXEC.BAT
  303. //      file on the boot disk in the boot drive.  If no AUTOEXEC.BAT file 
  304. //      already exists, then one will be created.
  305. // 
  306. //      Each of the two AUTOEXEC.BAT related commands, @Path and @Verbatim,
  307. //      is aware of the structure of an AUTOEXEC.BAT file.
  308. // 
  309. //      The @Path command examines each node of any existing PATH= commands
  310. //      (or its synonym SET PATH=) and places each of the nodes specified
  311. //      in the @Path command of the INSTALL.DAT file only if the node
  312. //      does not already exist on the PATH= search list of the AUTOEXEC.BAT
  313. //      file.
  314. // 
  315. //      The @Verbatim command instructs INSTALL to place the quoted string
  316. //      into the AUTOEXEC.BAT file, if the string is not already there.
  317. //
  318. @If ('Q' [= @Group) 
  319.     @SetAutoexec
  320.         @ASKOverwrite
  321.         @Path = "@QTWDrive:\\@QTWDirectory;"
  322.     @EndAutoexec
  323. @EndIf //if group not selected zero out
  324. @Finish
  325. @If(@BackgroundMode(1,0,0))@EndIf
  326. @Cls
  327. /*
  328.     The following command is used to create the wINSTALL group and
  329.     add the wINSTALL item to the Windows Program Manager.
  330. */
  331. @If ('S' [= @Group)
  332.     @SetINI("Starware", "CDDRIVE", @CDLetter, "@SampleDrive:@SampleDirectory\\Starware.ini")
  333. //      @BackgroundMode(3,@Blue,@Black)
  334.     
  335.     // @SetOption(1001)  
  336.  
  337. @EndIf
  338.  
  339. @If ('S' [= @Group)
  340.     @if ('Q' [= @Group)
  341.         @ProgramManager("[CreateGroup(Starware)][AddItem(@SampleDrive:\\@SampleDirectory\\demo.exe, Starware CD-ROM Sampler)][AddItem(@QTWDrive:\\@QTWDirectory\\player.exe, QT Player)][AddItem(@CDLetter:\\pcsample\\Readme.wri, Readme.wri)][AddItem(@CDLetter:\\pcsample\\verify.wri, BBS Verification Form)][AddItem(@CDLetter:\\pcsample\\BBSQ_A.wri, BBS Questions & Answers)][ShowGroup(Starware, 1)]"))
  342.     @Else
  343.         @ProgramManager("[CreateGroup(Starware)][AddItem(@SampleDrive:\\@SampleDirectory\\demo.exe, Starware CD-ROM Sampler)][AddItem(@CDLetter:\\pcsample\\Readme.wri, Readme.wri)][AddItem(@CDLetter:\\pcsample\\verify.wri, BBS Verification Form)][AddItem(@CDLetter:\\pcsample\\BBSQ_A.wri, BBS Questions & Answers)][ShowGroup(Starware, 1)]"))    
  344.     @EndIf
  345. @Else
  346.         @ProgramManager("[CreateGroup(Starware )][AddItem(@QTWDrive:\\@QTWDirectory\\player.exe, QT Player)][ShowGroup(Starware, 1)]"))         
  347. @EndIf
  348. @Cls @Name is finished installing.  Thank you for your purchase.
  349. @If('Q' [= @Group)
  350. You must reboot your computer for Quicktime for Windows to work. 
  351. @EndIf 
  352. @ChDrive (@OutDrive) 
  353. @ChDir ("@SubDir") 
  354. @Pause 
  355. @Exit 
  356. @If(@BackgroundMode(1,0,0))
  357. @EndIf 
  358. @EndFinish 
  359. // end-of-file
  360.